package com.mineoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 比赛排名
 * @TableName competition_ranking
 */
@TableName(value ="competition_ranking")
@Data
public class CompetitionRanking {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 比赛 id
     */
    private Long competitionId;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 总分数
     */
    private Integer score;

    /**
     * 排名
     */
    private Integer ranking;
}